package com.share.demo.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * caifan 2017/9/10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "user")
@NameStyle(Style.normal)
public class User extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1135166214085193130L;

    private String username;
    private String nickname;
    private String password;
    private String email;
    private String phone;
    private Integer age;
    private Integer gender;
    private Integer status;
    @Column(name = "last_login_time")
    private Date lastLoginTime;

}
